﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using CROSLAND.BL.BE;
using System.Data.Common;
using System.Data;

namespace CROSLAND.DL.DALC.MSSQL
{
    public class TipoDocumentoDALC : BaseDALC, ITipoDocumentoDALC
    {
       
        #region ITipoDocumentoDALC Members

        public List<TipoDocumentoBE> listar()
        {
            //TiposDocumentoProxy tProxy = new TiposDocumentoProxy();
            //tProxy.Connection = DALC.getConnection;
            //if (!tProxy.Connection.IsOpen) { tProxy.Connection.Open(); }
            ///* llamando a la función */
            //string ex_result = "";
            //TVAKTTable tblTipoDocumento = new TVAKTTable();
            //tProxy.Zweb_Lista_Documentoventas(out ex_result, ref tblTipoDocumento);
            //SAP.Connector.SAPConnectionPool.ReturnConnection(tProxy.Connection);
            //tProxy.Connection = null;
            ///* Manejando el retorno */
            //DataTable dt = tblTipoDocumento.ToADODataTable();

            //List<TipoDocumentoBE> lsTipoDocumento = new List<TipoDocumentoBE>();
            //foreach (DataRow dr in dt.Rows)
            //{
            //    TipoDocumentoBE objTipoDocumento = new TipoDocumentoBE();
            //    objTipoDocumento.Codigo = dr["AUART"].ToString();
            //    objTipoDocumento.Descripcion = dr["AUART"].ToString() + " :: " + dr["BEZEI"].ToString();
            //    lsTipoDocumento.Add(objTipoDocumento);
            //}
            //return lsTipoDocumento;
            return null;
        }

        #endregion
    }
}
